{{include template('public/header','admin')}}
</head>
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="page-header">
                    <h3>{{$action}}{{L('comment')}}</h3>
                </div>
                <style> .validform input {width: 60%;float: left;}</style>
                <form action="{{url($postUrl)}}" method="post" class="form-horizontal validform" id="cpform" name="cpform" role="form" autocomplete='off' >
                    <input type="hidden" name="formhash" value="{{FORMHASH}}" />
                    <input type="hidden" id="formscrolltop" name="scrolltop" value="" />
                    <input type="hidden" name="anchor" value="luomingui" />
                    <input type='hidden' name='cid' value="{{$item['cid']}}" />
                    <table class="table table-border ticky_table">
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_upid')}}：</td>
                            <td><input type="text" id="upid" name='upid' value="{{$item.upid}}"  class='form-control' tabindex="2"  datatype="*" nullmsg="请输入{{L('comment_upid')}}！" errormsg="{{L('comment_upid')}}错误,请重新输入！" placeholder="请输入{{L('comment_upid')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_uid')}}：</td>
                            <td><input type="text" id="uid" name='uid' value="{{$item.uid}}"  class='form-control' tabindex="3" 						  datatype="*" nullmsg="请输入{{L('comment_uid')}}！" errormsg="{{L('comment_uid')}}错误,请重新输入！" placeholder="请输入{{L('comment_uid')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_idtype')}}：</td>
                            <td><input type="text" id="idtype" name='idtype' value="{{$item.idtype}}"  class='form-control' tabindex="4" 						  datatype="*" nullmsg="请输入{{L('comment_idtype')}}！" errormsg="{{L('comment_idtype')}}错误,请重新输入！" placeholder="请输入{{L('comment_idtype')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_id')}}：</td>
                            <td><input type="text" id="id" name='id' value="{{$item.id}}"  class='form-control' tabindex="5" 						  datatype="*" nullmsg="请输入{{L('comment_id')}}！" errormsg="{{L('comment_id')}}错误,请重新输入！" placeholder="请输入{{L('comment_id')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_message')}}：</td>
                            <td><input type="text" id="message" name='message' value="{{$item.message}}"  class='form-control' tabindex="6" 						  datatype="*" nullmsg="请输入{{L('comment_message')}}！" errormsg="{{L('comment_message')}}错误,请重新输入！" placeholder="请输入{{L('comment_message')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_ip')}}：</td>
                            <td><input type="text" id="ip" name='ip' value="{{$item.ip}}"  class='form-control' tabindex="7" 						  datatype="*" nullmsg="请输入{{L('comment_ip')}}！" errormsg="{{L('comment_ip')}}错误,请重新输入！" placeholder="请输入{{L('comment_ip')}}" />
                            </td>
                        </tr> 
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_status')}}：</td>
                            <td><input type="text" id="status" name='status' value="{{$item.status}}"  class='form-control' tabindex="8" 						  datatype="*" nullmsg="请输入{{L('comment_status')}}！" errormsg="{{L('comment_status')}}错误,请重新输入！" placeholder="请输入{{L('comment_status')}}" />
                            </td>
                        </tr>
                        <tr>
                            <td class="w_100"> <span class="red">*</span>{{L('comment_dateline')}}：</td>
                            <td><input type="text" id="dateline" name='dateline' value="{{$item.dateline}}"  class='form-control' tabindex="9" 						  datatype="*" nullmsg="请输入{{L('comment_dateline')}}！" errormsg="{{L('comment_dateline')}}错误,请重新输入！" placeholder="请输入{{L('comment_dateline')}}" />
                            </td>
                        </tr>
                        <tr><td></td><td><input type="submit" name="dosubmit" class="btn btn-primary" value="{{L('submit')}}" style="width: 80px;" /></td></tr>
                    </table>
                    <script type="text/javascript">
                        $(function () {
                            $(".validform").Validform({tiptype: 3, showAllError: true, ajaxPost: true,
                                callback: function (ret) {
                                    if (ret.status == "y") {
                                        parent.location.reload();
                                    } else {
                                        layer.msg(ret.info);
                                    }
                                }
                            });
                        });
                    </script>
                </form>
            </div>
        </div>
    </div>
</body>
</html>